﻿@{
    Post post = ViewBag.Post;
    User user = ViewBag.User;
    ViewBag.Title = string.Format("{0} | {1} - Powered by Wedn.Net", post.Title, Setting.SiteName);
    ViewBag.IsDetails = true;
    Layout = "_Layout.cshtml";
}
<!--正文开始-->
<div class="main">
    <div id="mapsite">当前位置： <a title="返回首页" href="@Setting.SiteUrl">首页</a> &gt; @Html.Raw(post.Categorys) &gt; 正文</div>
    <div class="left">
        <h2>@post.Title</h2>
        <div class="post_date"><span class="date_m">@post.PubDate.ToString("MMM")</span><span class="date_d">@post.PubDate.ToString("dd")</span><span class="date_y">@post.PubDate.ToString("yyyy")</span></div>
        <div class="article">
            <div class="article_info">作者：@post.Author &nbsp; 发布：@post.PubDate.ToString("yyyy年MM月dd日 hh:mm") 12:08 &nbsp; 分类：@Html.Raw(post.Categorys) &nbsp;  评论： <a href="#comments" title="《@post.Title》上的评论">@post.CommentCount 条评论</a> &nbsp; </div>
            <div class="clear"></div>
            <div class="context">
                <p>@Html.Raw(post.Content)</p>
                <p>本文固定链接: <a href="@post.Link" rel="bookmark" title="@post.Title">@post.Link</a> | @Setting.SiteName</p>
            </div>
            <div class="clear"></div>
        </div>
    </div>
    <div class="articles">
        <div class="author_pic">
            <a href="javascript:;" title="@post.Author">
                <img alt="@post.Author" class="avatar" src="@Html.GetGravatar(user.Email, string.Empty, 40, "G")" title="@post.Author">
            </a>
        </div>
        <div class="author_text">
            <span class="spostinfo">
                该日志由 @post.Author 于 @post.PubDate.ToString("yyyy年MM月dd日 hh:mm") 发表在 @Html.Raw(post.Categorys) 分类下，你可以<a href="#respond">发表评论</a>，并在保留<a href="@post.Link">原文地址</a>及作者的情况下引用到你的网站或博客。
				<br>
                原创文章转载请注明: <a href="@post.Link" rel="bookmark" title="本文固定链接 @post.Link">@post.Title | @Setting.SiteName</a><br>
                关键字: @Html.Raw(post.Tags)
            </span>
        </div>
    </div>
    <div class="articles">
        @Html.GetPreviousPostLink(post, "【上一篇】：{0}")
        @*@{var prev = ViewBag.Previous;}
        【上一篇】@(prev != null ? string.Format("<a href=\"{0}\" rel=\"prev\">{1}</a>",prev.Link,prev.Title)  : "没了")*@
        <br>
        @Html.GetNextPostLink(post, "【下一篇】：{0}")
        @*@{var next = ViewBag.Next;}
        【下一篇】@(next != null ? string.Format("<a href=\"{0}\" rel=\"next\">{1}</a>",next.Link,next.Title) : "没了")*@
    </div>
    <div class="articles">
        @Html.Partial("_Comment")
    </div>
    @*<div id="mapsite">当前位置： <a title="返回首页" href="@Setting.SiteUrl">首页</a> &gt;未知星球!</div>*@
</div>
<!--正文结束-->
@Html.Partial("_Sidebar")